package com.rd.student.jiaji.class3.sunguowei.day0807.dlt;

import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.io.Writer;

public class DaLeTou {
    public static void main(String[] args) throws IOException {
        File file=new File("daletou.txt");

        Writer writer = new FileWriter(file);
        File file1=new File("randomDLT.txt");
        Writer writer1=new FileWriter(file1);
        File file2=new File("num.txt");


        byte[] arr=new byte[1024];
        String num="";
        String num1="";

           for (int i = 0; i < 5; i++) {
               int random = 1+(int) (Math.random() * 34);
               num=random+" "+num;
           }
           System.out.println(num);
           for (int i = 0; i < 2; i++) {
               int random1=1+(int) (Math.random() * 11);
               num1=random1+" "+num1;

           }
        System.out.println(num1);
           writer.write(num+"| "+num1);

       writer.close();
    }
}
